package net.factoryOpen.quickfactory.manufacturing.res.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import net.factoryOpen.quickfactory.manufacturing.res.mapper.ResLineMapper;
import net.factoryOpen.quickfactory.manufacturing.res.domain.ResLine;
import net.factoryOpen.quickfactory.manufacturing.res.service.IResLineService;

import net.factoryOpen.quickfactory.system.domain.SysBillFrozen;
import net.factoryOpen.quickfactory.system.mapper.SysBillFrozenMapper;

/**
 * 产线管理Service业务层处理
 * 
 * @author factoryOpen
 * @date 2025-01-02
 */
@Service
public class ResLineServiceImpl implements IResLineService 
{
    @Autowired(required = false)
    private ResLineMapper resLineMapper;

    @Autowired(required = false)
    private SysBillFrozenMapper sysBillFrozenMapper;


    /**
     * 查询产线管理
     * 
     * @param id 产线管理主键
     * @return 产线管理
     */
    @Override
    public ResLine selectResLineById(Long id)
    {
        return resLineMapper.selectResLineById(id);
    }

    /**
     * 查询产线管理列表
     * 
     * @param resLine 产线管理
     * @return 产线管理
     */
    @Override
    public List<ResLine> selectResLineList(ResLine resLine)
    {
        return resLineMapper.selectResLineList(resLine);
    }

    /**
     * 新增产线管理
     * 
     * @param resLine 产线管理
     * @return 结果
     */
    @Override
    public int insertResLine(ResLine resLine)
    {
        resLine.setCreateTime(DateUtils.getNowDate());
        return resLineMapper.insertResLine(resLine);
    }

    /**
     * 修改产线管理
     * 
     * @param resLine 产线管理
     * @return 结果
     */
    @Override
    public int updateResLine(ResLine resLine)
    {
        resLine.setUpdateTime(DateUtils.getNowDate());
        return resLineMapper.updateResLine(resLine);
    }

    /**
     * 批量删除产线管理
     * 
     * @param ids 需要删除的产线管理主键
     * @return 结果
     */
    @Override
    public int deleteResLineByIds(Long[] ids)
    {
        return resLineMapper.deleteResLineByIds(ids);
    }

    /**
     * 删除产线管理信息
     * 
     * @param id 产线管理主键
     * @return 结果
     */
    @Override
    public int deleteResLineById(Long id)
    {
        return resLineMapper.deleteResLineById(id);
    }


}
